import React from "react";
import style from "./style.module.scss";
export default function ShopList(props) {
  return (
    <div >
      <h3 className={style.title}>{props.title}</h3>
      <ul className={style.list}>
        {props.list.map((ele) => {
          return (
            <li key={ele.id}>
              <img src={ele.imgUrl} alt="" />
              <p>{ele.title}</p>
            </li>
          );
        })}
      </ul>
    </div>
  );
}
